package com.bnz.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@RabbitListener(queues = "bnz-sz")
@Component
public class Listener02 {

    //1. 获分裂消息---一对多
    @RabbitHandler
    public void getDirectMessage(String message){
        System.out.println("[fanout --sz]:" + message);
    }
}
